Yes, it would be the brain cells' chemistry. The mind is what the brain does.
Another neurologist of great standing is Vilayanur Ramachandran. A comical excerpt from one of his videos:
https://www.youtube.com/watch?v=PFJPtVRlI64
Like your reference to Philip Dick's book.